if connection.listen("0.0.0.0", 8700) == nil then
	print("listen failed");
	loop.exit();
end

function process_message(conn, data)
	print("lua:process_message");
	connection.write(conn, data);
end

function on_accept(conn)
	print("lua:on_accept", conn);
end

function on_closed(conn)
	print("lua:on_closed", conn);
end

function on_error(conn)
	print("lua:on_error", conn);
end

function on_connected(conn)
	print("lua:on_connected", conn);
end

--[[
function on_timer()
	print("lua:on_timer");
end
--]]

function on_signal()
	print("lua:on_signal");
end
